import request from '@/router/axios';
import qs from 'qs';

// 查 台账
export const findLedger = (data) => request({
  url: `/equipment/v1/ledger`,
  method: 'post',
  data: qs.stringify(data),
})

// 获取设备数据
export const getDevice = (data) => request({
  url: '/laboratoryFiles/v1/findOne',
  method: 'post',
  data: qs.stringify(data),
})
// 查询设备类型 tree
export const getDevTypeList = (data) => request({
    url: '/equipmentType/v1/findAllType',
    method: 'post',
    data: qs.stringify(data),
})

// 申请单详情
export const findById = (data) => request({
  url: '/maintenanceApplication/v1/findById',
  method: 'post',
  data: qs.stringify(data),
})
